ARG BASE_IMAGE=registry.cn-hangzhou.aliyuncs.com/zijian666/dotnet:sdk-5.0
FROM ${BASE_IMAGE}

ENV MODE=Release NUGETS=https://nuget.cdn.azure.cn/v3/index.json NUGET_PUSH_URL=https://api.nuget.org/v3/index.json VERSION_SUFFIX="*"
COPY ["./push_nuget.sh","/push_nuget.sh"]
WORKDIR /source

ARG BASE_IMAGE=registry.cn-hangzhou.aliyuncs.com/zijian666/dotnet:sdk-5.0
ENV BASE_IMAGE=${BASE_IMAGE}
RUN mkdir -p /build_time \
    && echo "base image ${BASE_IMAGE} build time: $(date '+%Y-%m-%d %H:%M:%S')" > /build_time/nuget.txt
ONBUILD RUN cat /build_time/nuget.txt
ENTRYPOINT ["bash", "/push_nuget.sh"]